using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EnemyNightAttack : EnemyState
{
    protected Enemy_Night enemy;
    public EnemyNightAttack(Enemy _enemybase, EnemyStateMachine _stateMachine, string _animBoolName, Enemy_Night _enemy) : base(_enemybase, _stateMachine, _animBoolName)
    {
        this.enemy = _enemy;
    }

    public override void Enter()
    {
        base.Enter();
    }

    public override void Exit()
    {
        base.Exit();
    }

    public override void Update()
    {
        base.Update();
        enemy.SetZeroVelocity();
        if (triggerCalled)
        {
            stateMachine.ChangeState(enemy.nightIdle);

        }

    }
}
